<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" import="java.util.*,com.unitedats.Project.Entity.*,com.unitedats.common.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>search for project</title>
</head>
<body>
<form name="form1" method="post" action="SearchForProjectProcess" target="searchResultIFrame">
  <table class="layout_grid">
    <tr>
      <td colspan="2"><h1 class="page_title">Search For Project</h1></td>
    </tr>
    <tr>
      <td class="side_label_middle">Project Code :</td>
      <td><input name="code" type="text" id="code" size="20"></td>
    </tr>
    <tr>
      <td class="side_label_middle">Project Name : </td>
      <td><input name="name" type="text" id="name"	size="50"></td>
    </tr>
    <tr>
      <td class="side_label_middle">Project Type :</td>
      <td><%= HtmlUtil.drawProjectTypeList("pType")%></td>
    </tr>
    <tr>
      <td class="side_label_middle">Project Status :</td>
      <td><%= HtmlUtil.drawProjectStatusList("status")%></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Search"></td>
    </tr>
    <tr>
      <td colspan="2"><iframe name="searchResultIFrame" id="searchResultIFrame"  style="display: none" onload='showSearchResult()' ></iframe></td>
    </tr>
    <tr>
      <td colspan="2"><div id="searchResultDiv"></div></td>
    </tr>
  </table>
  <script>
  function showSearchResult(){
	  var iContentBody = $("#searchResultIFrame").contents().find("body");
	  $("#searchResultDiv").html(iContentBody.html());  
  }
  </script>
</form>
</body>
</html>
